package com.lagou.homework.stage02.module01.Task01.entity;

import java.io.Serializable;
import java.net.ServerSocket;

public class Account implements Serializable {
    private int id;
    private String userName;
    private String card;
    private Double balance;
    public Account() {}

    public Account(int id, String userName, String card, Double balance) {
        this.id = id;
        this.userName = userName;
        this.card = card;
        this.balance = balance;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", card='" + card + '\'' +
                ", balance='" + balance + '\'' +
                '}';
    }
}
